package com.yxw.live_vod_backend_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @tableName:操作日志表
 * @author liuxin
 * @date 2023.10.25
 */
@Data
@TableName("sys_opt_log")
public class SysOptLogEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "log_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "日志ID")
    private Long logId;

    @ApiModelProperty(value = "ip地址")
    private String ipAddress;

    @ApiModelProperty(value = "访问路径")
    private String url;

    @ApiModelProperty(value = "访问方法")
    private String pathMethod;

    @ApiModelProperty(value = "操作人ID")
    private Long userId;

    @ApiModelProperty(value = "操作人名称")
    private String userName;

    @ApiModelProperty(value = "请求参数")
    private String requestParam;

    @ApiModelProperty(value = "响应参数")
    private String responseParam;

    @ApiModelProperty(value = "0:失败 1：成功")
    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "操作时间")
    private Date optTime;

}